package org.jeecg.talentCooperation.fruit.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Set;

@Data
public class FruitResultModel implements Serializable {
    private static final long serialVersionUID = 1L;
    
	@TableId(type = IdType.ASSIGN_ID)
	private String id;
	private String fruitName;
	private String fieldValue;
	private String field;
	private String researchField;
	private String[] researchFields;
	private String fruitKeyword;
	private String gwFieldKeyword;
	private String authorName;
	private String allAuthorName;
	private String orgName;
	private String type;
	private String summary;
	private int offset; //取sql结果集第几条
	private int showFruitNum; //显示几条数据
	private String randomType; //主页搜索中  随机了哪个类型的数据


	private String pinyin;

	private String[] fruitTypes;

	private String[] gwFields;

    @DateTimeFormat(pattern="yyyy-MM-dd")
	private Date pubTime;

	@TableField(exist = false)
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date pubStartDate;

	@TableField(exist = false)
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date pubEndDate;
	/**页数*/
	private Integer pageNo;
	/**大小*/
	private Integer pageSize;

	@TableField(exist = false)
	private String searchType;

	@TableField(exist = false)
	private String name;

	@TableField(exist = false)
	private String content;

	@TableField(exist = false)
	private String[] fields;

	@TableField(exist = false)
	private String[] orgNames;

	@TableField(exist = false)
	private Set<Long> fruitIdList;

	@TableField(exist = false)
	private String orgUserId;

	@TableField(exist = false)
	private  List<String> talentIdList;

	@TableField(exist = false)
	private String[] fieldNames;

	@TableField(exist = false)
	private Set<String> fieldValues;

	@TableField(exist = false)
	private int count;

	private List<FruitResultModel> resultModelList;

	@TableField(exist = false)
	private List<String> contentList;
}
